package com.tiancheng.trade.order.bo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 *  会员优惠信息
 * @Author: likailun
 * @Description:
 * @Date: create in 2022/7/27 4:46 PM
 */
@Getter
@Setter
@Slf4j
public class VipBO {
    // 订单号
    private String orderId;
    // 用户id
    private String uid;
    // 订单金额
    private Integer orderAmount;
    // 场景
    private String orderSource;
    // 折扣
    private Integer discount;
    // 折扣金额
    private Integer discountAmount;
    // 使用的云豆数量
    private Integer useBeam;
    // 云豆抵扣金额
    private Integer useBeamAmount;
    // 会员等级
    private String level;

    private List<Product> productList;

    private List<SubOrder> subOrders;

    @Getter
    @Setter
    @AllArgsConstructor
    @NoArgsConstructor
    public static class SubOrder {

        private String subOrderId;
        private Integer orderAmount;
        // 折扣
        private Integer discount;
        // 折扣金额
        private Integer discountAmount;
        // 使用的云豆数量
        private Integer useBeam;
        // 云豆抵扣金额
        private Integer useBeamAmount;
    }

    @Getter
    @Setter
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Product {

        private String productId;
        private String productName;
    }


}
